//------------------------------------------------------------------------------------
#include "CSnakeBody.h"
#include "common.h"
//------------------------------------------------------------------------------------
CSnakeBody::CSnakeBody(void) : CSprite() {
    corps=QImage(":/snake/images/souris.png");
}
//------------------------------------------------------------------------------------
void CSnakeBody::draw(QPainter *painter, int idxImage) {
	QRect reg(idxImage*CELL_WIDTH, 0, CELL_WIDTH, CELL_HEIGHT);
	CSprite::draw(painter, corps.copy(reg));
}
//------------------------------------------------------------------------------------

